import 'package:flutter/material.dart';
import './player.dart';

class OtherRole extends Player {
  final int disToMainRole;
  OtherRole({@required String roleId, @required String uname, @required this.disToMainRole, @required int sex, @required int asset}):super(roleId: roleId, isMainRole: true, uname: uname, sex: sex, asset: asset);

  @override
  void playCards(List<String> _cards) {
    this.cards = this.cards.sublist(_cards.length);
    this.lastCards = _cards;
  }
}